//全局设置
<script>
// 接口API地址
const serUrl = "http://47.99.119.140:8080"; //接口地址
const loginUrl = serUrl + "/passport/login"; //登录接口
const DeviceOnlineStat = serUrl + "/portal/device/online/stat"; //设备在线统计
const DeviceOnlineWeekTrend = serUrl + "/portal/device/online/week/trend"; //设备在线趋势图，分析近一周的在线数据
const DeviceSpeedStat = serUrl + "/portal/device/speed/stat"; //设备速度统计
const fenceDeviceStat = serUrl + "/fence/bd/device/stat"; //违规车辆封闭
const warningInfoList = serUrl + "/portal/device/warning/list"; //设备告警信息列表
const warningStatDate = serUrl + "/portal/device/warning/stat"; //获取警告数据

const heatData = serUrl + "/heat/bd/points/weight"; //热力图数据
const deviceQuery = serUrl + "/portal/device/query"; //查询设备点信息
const deviceQueryDetail = serUrl + "/device-monitor-portal/device-detail"; //查询设备点信息详情

const deviceMonitorList = serUrl + "/device-monitor-portal/list"; //查询设备点监控集合
const addDeviceMonitor = serUrl + "/device-monitor-portal/add"; //添加设备点监控
const cancelDeviceMonitor = serUrl + "/device-monitor-portal/cancle"; //取消设备点监控

const onFence = serUrl + "/fence/bd/on"; //开启安全围栏
const offFence = serUrl + "/fence/bd/off"; //关闭安全围栏
const deleteFence = serUrl + "/fence/bd/delete"; //删除安全围栏
const createFence = serUrl + "/fence/bd/save"; //创建安全围栏
const innerFence = serUrl + "/fence/bd/query/fence/inner"; //违规设备查询
const firstInnerFence = serUrl + "/fence/bd/query/fence/inner/fist"; //第一次进入违规设备查询
const queryFence = serUrl + "/fence/bd/query/fence/"; //查询安全围栏
const userInfo = JSON.parse(localStorage.getItem("userInfo"));

const map = new BMap.Map("driver-live-map", { enableMapClick: false });

const copyrightText = "©2018 河南信恒北斗有限公司"
export default {
  loginUrl,
  DeviceOnlineStat,
  DeviceOnlineWeekTrend,
  warningInfoList,
  DeviceSpeedStat,
  fenceDeviceStat,
  warningStatDate,

  heatData,
  deviceQuery,
  deviceQueryDetail,
  deviceMonitorList,
  addDeviceMonitor,
  cancelDeviceMonitor,
  onFence,
  offFence,
  deleteFence,
  createFence,
  innerFence,
  firstInnerFence,
  queryFence,

  map,
  userInfo,

  copyrightText,
};
</script>
